import 'package:flutter_module/pages/homePage/views/HomePage.dart';
import 'package:flutter_module/pages/myPage/MyNTF.dart';
import 'package:flutter_module/pages/nftUploadPage/UploadDetail.dart';
import 'package:flutter_module/pages/nftUploadPage/UploadWorkInformation.dart';
import 'package:flutter_module/pages/onePage.dart';
import 'package:flutter_module/pages/productPage/OrderConfirm.dart';
import 'package:flutter_module/pages/productPage/Pay.dart';
import 'package:flutter_module/pages/productPage/quequan.dart';
import 'package:flutter_module/pages/sec_page.dart';
import 'package:flutter_module/pages/three_page.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_module/pages/myPage/MyPage.dart';
import 'package:flutter/material.dart';
import 'package:flutter_module/pages/Tabs.dart';
import 'package:flutter_module/pages/productPage/ProductDetail.dart';
import 'package:flutter_module/pages/yuePage/yuePage.dart';

Route<dynamic> onGenerateRoute(RouteSettings settings) {
  var routes = <String, WidgetBuilder>{
    "/":(context)=>Tabs(),
    "home":(context)=>HomePage(),
    "my":(context)=>MyPage(),
    "sec":(context)=>SecPage(),
    "thr":(context)=>ThreePage(),
    "one":(context)=>OnePage(),
    "productDetail":(context)=>ProductDetailPage(),
    "pay":(context)=>Pay(),
    "myNTF":(context)=>MyNFT(),
    "uploadDetail":(context)=>UploadDetail(),
    "uploadWorkInformation":(context)=>UploadWorkInformation(),
    "orderConfirm":(context)=>OrderConfirm(),
    "yue":(context)=>yuePage(),
    "quequan":(context)=>quequan(),
  };
  WidgetBuilder builder = routes[settings.name];
  return MaterialPageRoute(builder: (ctx) => builder(ctx));
}
